-- mechanical_buff
-- create by xinj
-- 附加属性：能量齿轮状态显示

return {
    apply = function(prop, baseValue)
        -- 数量
        return prop[3];
    end,

    desc = function(prop)
        local row = PropM.getRow(prop[1]);
        local desc = row.desc;

        local level = 0;
        local p = PropM.combine(ME.user, "mechanics", 1);
        level = PropM.apply(p, level);

        if level >= 1 then
            desc = desc..getLocStr("mechanical_buff_1");
        end
        if level >= 2 then
            desc = desc..getLocStr("mechanical_buff_2");
        end
        if level >= 5 then
            desc = desc..getLocStr("mechanical_buff_3");
        end

        return desc;
    end,

    record = function(target, prop, path)
        return false;
    end
};
